<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class AdminRole extends Model
{
    //
        protected $guarded=[];
        public function permission(){

     		return $this->belongsToMany('App\AdminPermission','admin_permission_roles','role_id','permission_id')->withPivot('role_id', 'permission_id');

     }
    
}
